# 架构 交叉编译器
export ARCH = arm64
export CROSS_COMPILE = aarch64-none-linux-gnu-

# 目标 路径
# obj-m += mathmodule.o hello.o

obj-m := mathmodule.o
obj-m += hello.o

KDIR := /jnheCode/tspkfb/kernel
PWD ?= $(shell pwd)

# make 、make clean
all:
	make -C $(KDIR) M=$(PWD) modules
clean:
	make -C $(KDIR) M=$(PWD) clean